<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Settings */

$this->title = Yii::t('app', 'Settings Information');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Settings'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="settings-view">

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            ['attribute' => 'setId', 'value' => function($model){return empty($model->setId) ? '' : $model->setId;}],
            ['attribute' => 'setName', 'value' => function($model){return empty($model->setName) ? '' : $model->setName;}],
            ['attribute' => 'setTag', 'value' => function($model){return empty($model->setTag) ? '' : $model->setTag;}],
            ['attribute' => 'setValue', 'value' => function($model){return empty($model->setValue) ? '' : $model->setValue;}],
            ['attribute' => 'description', 'value' => function($model){return empty($model->description) ? '' : $model->description;}],
            ['attribute' => 'ctime', 'value' => function($model){return $model->ctime <= 0 ? '' : date('Y-m-d H:i:s', $model->ctime);}]
        ],
    ]) ?>

</div>
